package com.momo.hotel.service.impl;

import com.momo.hotel.dao.mapping.TbTestimonialsMapper;
import com.momo.hotel.dao.mapping.ext.TbTestimonialsMapperExt;
import com.momo.hotel.dao.pojo.ext.TbTestimonialsExt;
import com.momo.hotel.service.TestimonialsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestimonialsServiceImpl implements TestimonialsService {
    /**
     * 客户评价
     */
    @Resource
    TbTestimonialsMapperExt tbTestimonialsMapperExt;

    @Override
    public Integer addTestimonials(TbTestimonialsExt tbTestimonialsExt) {
        return tbTestimonialsMapperExt.addTestimonials(tbTestimonialsExt);
    }

    @Override
    public List<TbTestimonialsExt> selectTestimonials() {
        return tbTestimonialsMapperExt.selectTestimonials();
    }
}
